import Vue from 'vue'
import Router from 'vue-router'
import Home from '../components/Home'
import User from '../components/User'
Vue.use(Router)

const routes = [{
        path:'/home',
        component:Home
    },{
        path:'/user',
        component:User
    }]

export default new Router({
    routes,
    mode: 'history'
})
